1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

Issue #1633 - possible fix for record creation problem using admin-ui and LAN_CREATE term.

This commit is contained in:
Cameron 2016-05-12 19:34:57 -07:00
parent b887ec55f0
commit 09cbf97f3a
3 changed files with 3 additions and 3 deletions

View File

@ -4057,7 +4057,7 @@ class e_admin_controller_ui extends e_admin_controller
// - Autoincrement sortField on 'Create'.
if(($_posted['etrigger_submit'] == 'Create') && !empty($this->sortField) && empty($this->sortParent) && empty($_posted[$this->sortField]) )
if(($_posted['etrigger_submit'] == 'create') && !empty($this->sortField) && empty($this->sortParent) && empty($_posted[$this->sortField]) )
{
$incVal = e107::getDb()->max($this->table, $this->sortField) + 1;

View File

@ -5594,7 +5594,7 @@ class e_form
foreach ($triggers as $trigger => $tdata)
{
$text .= ($trigger == 'submit') ? "<div class=' btn-group'>" : "";
$text .= $this->admin_button('etrigger_'.$trigger, $tdata[0], $tdata[1]);
$text .= $this->admin_button('etrigger_'.$trigger, $tdata[1], $tdata[1], $tdata[0]);
if($trigger == 'submit' && $submitopt)
{

View File

@ -2855,7 +2855,7 @@ class e_admin_model extends e_front_model
$this->mergePostedData(false, true, true);
}
if($this->getId() && $this->getPostedData('etrigger_submit') !='Create') // Additional Check to allow primary ID to be manually set when auto-increment PID is not used. @see userclass2.php
if($this->getId() && $this->getPostedData('etrigger_submit') !='create') // Additional Check to allow primary ID to be manually set when auto-increment PID is not used. @see userclass2.php
{
return $this->dbUpdate($force, $session_messages);
}