diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 825689589..778592ea2 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -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; diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index addf30461..be0b679cc 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -5594,7 +5594,7 @@ class e_form foreach ($triggers as $trigger => $tdata) { $text .= ($trigger == 'submit') ? "
" : ""; - $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) { diff --git a/e107_handlers/model_class.php b/e107_handlers/model_class.php index 0aa09acac..77094a05f 100644 --- a/e107_handlers/model_class.php +++ b/e107_handlers/model_class.php @@ -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); }