⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

After successful update - insert_success_message not update_success_message



Twillied

Twillied
  • profile picture
  • Member

Posted 03 August 2012 - 18:29 PM

After I successfully update a record, the insert_success_message lang string is displayed instead of the update_success_message lang string. This happens only when I hit the 'save and go back to list' button. I could use some direction - I've looked at it too long and can't seem to find the problem.

I'm using GC version 1.2.3 with the flexigrid theme and this is my code:

$crud = new grocery_CRUD();

$crud->set_table('users');
$crud->columns('username','first_name','last_name','email','phone','active');
$crud->display_as('first_name','First Name')
->display_as('last_name','Last Name');
$crud->fields('active','username','first_name','last_name','email','phone','signature');
$crud->set_lang_string('insert_success_message','The user data has been successfully added.');
$crud->set_lang_string('update_success_message','The user data has been successfully updated.');
$crud->set_subject('User');

$output = $crud->render();

Thanks for any help.