Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[SOLVED] records Username change to admin after edit 27 Dec 2012 02:53 #6285

I have a records table

Username
Product
Code

on cook 1.5
I can edit records on admin page without any problem


on cook 2.0
once I edit the the record and save ... the username becomes admin as default even if you change it to another user once you save it it will be admin by default


Please check..
Thanks

Please Log in or Create an account to join the conversation.

Re: records Username change to admin after edit 27 Dec 2012 07:37 #6290

  • BTB300
  • BTB300's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
Before Saving...

Cook Version 2.0
- Change the user
- Apply the changes

Then you can save as needed and the new user will stick

Please Log in or Create an account to join the conversation.

Re: records Username change to admin after edit 27 Dec 2012 14:02 #6292

that is what I did ... but after save the user that I update goes back to admin

I update a record to
User: mickael
then save...
record still show user for that record is admin


kindly check please refer to
sandbox.cms25.j-cook.pro/administrator/i...odreg&layout=default

also tried to rebuild on 2.0 but with no luck


also if you ask me to change user in admin before editing my table record...
it would be not that easy since all my records are created by different user
I cannot change to their username before I edit each of their records....
just imagine if i have 1000+ records to edit with 50 records per user

also I cannot give admin permission to registered user

There is no problem with cook 1.5 same coding but when I save it to cook 2.0 this problem came

Please Log in or Create an account to join the conversation.

Last edit: by jasonsevilla.

Re: records Username change to admin after edit 28 Dec 2012 14:15 #6300

Any Updates about this issue?

Please Log in or Create an account to join the conversation.

Re: records Username change to admin after edit 06 Jan 2013 19:28 #6363

jasonsevilla wrote: that is what I did ... but after save the user that I update goes back to admin

I update a record to
User: mickael
then save...
record still show user for that record is admin


kindly check please refer to
sandbox.cms25.j-cook.pro/administrator/i...odreg&layout=default

also tried to rebuild on 2.0 but with no luck


also if you ask me to change user in admin before editing my table record...
it would be not that easy since all my records are created by different user
I cannot change to their username before I edit each of their records....
just imagine if i have 1000+ records to edit with 50 records per user

also I cannot give admin permission to registered user

There is no problem with cook 1.5 same coding but when I save it to cook 2.0 this problem came


Good Day .. just want to ask if there is any updates regarding this issue?

Please Log in or Create an account to join the conversation.

Last edit: by jasonsevilla.

Re: records Username change to admin after edit 06 Jan 2013 19:57 #6364

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195

jasonsevilla wrote: also tried to rebuild on 2.0 but with no luck ... There is no problem with cook 1.5 same coding but when I save it to cook 2.0 this problem came

OK, I think I know what's going on here... I believe that you've probably instanced an author wizard in the 1.5 version, right? If so, there are incompatibilities because of differences in the wizard to generate a J1.5 compatible version compared with that for a J2.5 version.

TODO:
  1. Remove the authoring wizard and field by dragging to trash can
  2. Confirm deletion for both items when prompted
  3. Re add the author wizard & generate the field using the green '+' button
  4. Re add the field to your grid, fly and form layouts
  5. Re add the field to any filters you may have already defined for them
  6. Regenerate by clicking sandbox
Hope this helps!

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Last edit: by JoomGuy. Reason: Formatting correction

Re: records Username change to admin after edit 07 Jan 2013 17:39 #6369

Done that instruction but got an error when i run the sandbox

JInstaller: :Install: Error SQL DB function failed with error number 1054
Unknown column '' in 'field list' SQL=INSERT INTO `[PREFIX]demo7291_userprodreg` (`id`,`params`,``,`product_name`,`product_code`,`date_created`,`date_modified`,`flavor_name`,`access`,`active`) VALUES (14,'',1,'','a990099','2012-12-19','2012-12-27',4,1,1) ,(12,'',10,'','123123','2012-12-19','2012-12-27',3,1,1) ,(11,'',10,'','1234567','2012-12-19','2012-12-20',1,1,1) ,(16,'',10,'','a1231234','2012-12-19','2012-12-27',3,1,1) ,(18,'',10,'','12321','2012-12-22','2012-12-27',3,1,1) ,(19,'',10,'','1112','2012-12-22','2012-12-27',4,1,1) ,(20,'',10,'','ghdfgdf','2012-12-22','2012-12-27',4,1,1) ,(21,'',9,'','998899','2012-12-27','2012-12-27',1,1,1) ,(22,'',9,'','11111','2012-12-27','2012-12-27',1,1,1) ,(23,'',9,'','222222','2012-12-27','2012-12-27',3,1,1) ,(24,'',9,'','333333','2012-12-27','2012-12-27',3,1,1) ,(25,'',9,'','321456987','2012-12-27','2012-12-27',1,1,1) ,(26,'',9,'','456456','2012-12-27','2012-12-27',1,1,1) ,(27,'',10,'','7896523','2012-12-27','2012-12-27',2,1,1);
SQL =

INSERT INTO `vs4go_demo7291_userprodreg` (`id`,`params`,``,`product_name`,`product_code`,`date_created`,`date_modified`,`flavor_name`,`access`,`active`)
VALUES
(14,'',1,'','a990099','2012-12-19','2012-12-27',4,1,1)
,(12,'',10,'','123123','2012-12-19','2012-12-27',3,1,1)
,(11,'',10,'','1234567','2012-12-19','2012-12-20',1,1,1)
,(16,'',10,'','a1231234','2012-12-19','2012-12-27',3,1,1)
,(18,'',10,'','12321','2012-12-22','2012-12-27',3,1,1)
,(19,'',10,'','1112','2012-12-22','2012-12-27',4,1,1)
,(20,'',10,'','ghdfgdf','2012-12-22','2012-12-27',4,1,1)
,(21,'',9,'','998899','2012-12-27','2012-12-27',1,1,1)
,(22,'',9,'','11111','2012-12-27','2012-12-27',1,1,1)
,(23,'',9,'','222222','2012-12-27','2012-12-27',3,1,1)
,(24,'',9,'','333333','2012-12-27','2012-12-27',3,1,1)
,(25,'',9,'','321456987','2012-12-27','2012-12-27',1,1,1)
,(26,'',9,'','456456','2012-12-27','2012-12-27',1,1,1)
,(27,'',10,'','7896523','2012-12-27','2012-12-27',2,1,1);

Component Install: SQL error file DB function failed with error number 1054
Unknown column '' in 'field list' SQL=INSERT INTO `[PREFIX]demo7291_userprodreg` (`id`,`params`,``,`product_name`,`product_code`,`date_created`,`date_modified`,`flavor_name`,`access`,`active`) VALUES (14,'',1,'','a990099','2012-12-19','2012-12-27',4,1,1) ,(12,'',10,'','123123','2012-12-19','2012-12-27',3,1,1) ,(11,'',10,'','1234567','2012-12-19','2012-12-20',1,1,1) ,(16,'',10,'','a1231234','2012-12-19','2012-12-27',3,1,1) ,(18,'',10,'','12321','2012-12-22','2012-12-27',3,1,1) ,(19,'',10,'','1112','2012-12-22','2012-12-27',4,1,1) ,(20,'',10,'','ghdfgdf','2012-12-22','2012-12-27',4,1,1) ,(21,'',9,'','998899','2012-12-27','2012-12-27',1,1,1) ,(22,'',9,'','11111','2012-12-27','2012-12-27',1,1,1) ,(23,'',9,'','222222','2012-12-27','2012-12-27',3,1,1) ,(24,'',9,'','333333','2012-12-27','2012-12-27',3,1,1) ,(25,'',9,'','321456987','2012-12-27','2012-12-27',1,1,1) ,(26,'',9,'','456456','2012-12-27','2012-12-27',1,1,1) ,(27,'',10,'','7896523','2012-12-27','2012-12-27',2,1,1);
SQL =

INSERT INTO `vs4go_demo7291_userprodreg` (`id`,`params`,``,`product_name`,`product_code`,`date_created`,`date_modified`,`flavor_name`,`access`,`active`)
VALUES
(14,'',1,'','a990099','2012-12-19','2012-12-27',4,1,1)
,(12,'',10,'','123123','2012-12-19','2012-12-27',3,1,1)
,(11,'',10,'','1234567','2012-12-19','2012-12-20',1,1,1)
,(16,'',10,'','a1231234','2012-12-19','2012-12-27',3,1,1)
,(18,'',10,'','12321','2012-12-22','2012-12-27',3,1,1)
,(19,'',10,'','1112','2012-12-22','2012-12-27',4,1,1)
,(20,'',10,'','ghdfgdf','2012-12-22','2012-12-27',4,1,1)
,(21,'',9,'','998899','2012-12-27','2012-12-27',1,1,1)
,(22,'',9,'','11111','2012-12-27','2012-12-27',1,1,1)
,(23,'',9,'','222222','2012-12-27','2012-12-27',3,1,1)
,(24,'',9,'','333333','2012-12-27','2012-12-27',3,1,1)
,(25,'',9,'','321456987','2012-12-27','2012-12-27',1,1,1)
,(26,'',9,'','456456','2012-12-27','2012-12-27',1,1,1)
,(27,'',10,'','7896523','2012-12-27','2012-12-27',2,1,1);

There was an error installing the package

Please Log in or Create an account to join the conversation.

Re: records Username change to admin after edit 07 Jan 2013 18:06 #6370

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Try flushing data set and retry... I think it's because the fields themselves have changed datatype when wizards have been updated.

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: records Username change to admin after edit 07 Jan 2013 18:30 #6371

it works thanks Problem Fixed

Please Log in or Create an account to join the conversation.

Re: records Username change to admin after edit 07 Jan 2013 18:40 #6372

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Great!
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.084 seconds

I must say that I'm leaps and bounds ahead of where I would have other been with J2.5 with full thanks to the folks on this forum and specifically to Cook so you'll never hear me complaining.
gdpodesta (Forum)  

Get Started