Re: Trying to edit User.status but nothing happens

2009-05-05 Thread Flipflops
Hi I assume that you are including sername and password as hidden fields because they are required in your validation array - but rather than include them as hidden fields it might be better to create different validate arrays in your model e.g. var $validate = array( 'somefield'

Re: Trying to edit User.status but nothing happens

2009-05-05 Thread paulos nikolo
Well i found the solution...i put sername and password as hidden so that there are enough data for update! Thx again m8! 2009/5/5 paulos nikolo > Thx for the hint Jonh.Well when i try to change status from 1 to 0 > (checkbox unchecked) here is what debug prints: > > Array > ( > [User] => Arr

Re: Trying to edit User.status but nothing happens

2009-05-05 Thread paulos nikolo
Thx for the hint Jonh.Well when i try to change status from 1 to 0 (checkbox unchecked) here is what debug prints: Array ( [User] => Array ( [status] => 0 [id] => 54 ) ) Which it seems ok to me...i cant understand what's going on.The status has been ch

Re: Trying to edit User.status but nothing happens

2009-05-05 Thread John Andersen
Try to put a debug statement into the controller in the change_status method, to see that it is getting invoked! For example "debug($this->data);" Enjoy, John On May 5, 1:47 pm, Paulos23 wrote: > Hello people, > I am facing a really weird problem with an issue.I have a field in > users table

Trying to edit User.status but nothing happens

2009-05-05 Thread Paulos23
Hello people, I am facing a really weird problem with an issue.I have a field in users table which is called status.I have set it to tinyint(1) not null default '1',which means user status is active.Now when i want to change his status to inactive--> '0' i use a checkbox as it is more appropriate,