Add field to project
Page: 1, 2
Hi Ilija,
Yeah, I have actually added the custom fields to the $project_data array within the edit_status() action. This worked for me with version 1.0.6 but now doesn't work with 1.1.2. I did a diff on that action as well and there doesn't seem to be any significant chance in the versions that I can see affecting this behavior. Is there any other way I can make it so these fields are not ignored if the status is unchanged?
Thanks,
Garry
Yeah, I have actually added the custom fields to the $project_data array within the edit_status() action. This worked for me with version 1.0.6 but now doesn't work with 1.1.2. I did a diff on that action as well and there doesn't seem to be any significant chance in the versions that I can see affecting this behavior. Is there any other way I can make it so these fields are not ignored if the status is unchanged?
Thanks,
Garry
Oh, I also forgot to mention that after the call to db_begin_work();, I added the following line to save the custom fields:
$this->active_project->setAttributes($project_data);
But it still doesn't seem to be saving the values.
Thanks,
Garry
$this->active_project->setAttributes($project_data);
But it still doesn't seem to be saving the values.
Thanks,
Garry
Hi Ilija,
Sorry, unfortunately I don't think I can give out that access. Not sure if there's anything else we can try.
Thanks,
Garry
Sorry, unfortunately I don't think I can give out that access. Not sure if there's anything else we can try.
Thanks,
Garry
Hi Ilija,
Actually, I just found out a way to trigger the update. I noticed a $save variable that seems to rely on several status related methods. I'm not sure if this will have an adverse affect on anything else but adding the following line after the switch statement seems to work:
$save = $this->active_project->save();
I'll let you know if I run into any other problems as a result of this.
Thanks!
Garry
Actually, I just found out a way to trigger the update. I noticed a $save variable that seems to rely on several status related methods. I'm not sure if this will have an adverse affect on anything else but adding the following line after the switch statement seems to work:
$save = $this->active_project->save();
I'll let you know if I run into any other problems as a result of this.
Thanks!
Garry



