Page 1 of 1

Wrong Message

Posted: 2013-10-15 14:08
by AhmedBR
I am using the following code from the examples here to restrict the editing, and it is working.

Code: Select all

function tablename_before_update(&$data, $memberInfo, &$args){

// get the creation date of the record
$creationDate=sqlValue("select dateAdded from membership_userrecords
where tableName='tablename' and pkValue='{$data['selectedID']}'");
if the record is older than 30 days, deny changes
if($creationDate < strtotime('30 days ago')) return FALSE;
return TRUE;
}
BUT although the changes do not take place, the user still GET THIS MESSAGE:
The changes have been saved successfully.

How can we change this message to say CHANGES NOT SAVED in this case?

Re: Wrong Message

Posted: 2013-10-16 21:46
by alex_evil
I have the same unsolved issue.

Re: Wrong Message

Posted: 2013-10-28 18:08
by a.gneady
This has been fixed in the final release of AppGini 5.20 ... Please give it a try and let me know if anything goes wrong.

Re: Wrong Message

Posted: 2013-10-29 01:29
by AhmedBR
Thanks, tested and working well in 5.20 final

But Just wondering if it is possible to do this fix (I mean which file I should change to get it to work in 5.12 ) to get it to work in 5.12?
We have developed a BIG application with 5.12 and the users prefer the feel and looks of 5.12 theme (so do not touch a wining team).

Thanks

Re: Wrong Message

Posted: 2013-11-17 23:48
by a.gneady
Sorry for the delay .. It's hard to answer this question unfortunately ... There is a huge list of code changes between 5.12 and 5.20/5.21 ... the fix for this specific issue was built upon other code changes so it would be really hard to trace them all .. Sorry for the disappointment :(

Re: Wrong Message

Posted: 2013-11-18 00:38
by AhmedBR
No worries, I was expecting something like that.

I did some changes to the current css to suit our needs.

Thanks