CMS MADE SIMPLE FORGE

CGBetterForms

 

[#11442] Cannot update handler template

avatar
Created By: Tomas Amsrud (tamsrud)
Date Submitted: Tue Jun 27 09:28:59 -0400 2017

Assigned To: Robert Campbell (calguy1000)
Version: 0.9
CMSMS Version: 2.2.1
Severity: Major
Resolution: Invalid
State: Closed
Summary:
Cannot update handler template
Detailed Description:
When submitting a form I get the following error:
Syntax error in template "string:{strip} {if !empty($company)}
..." on line 9 "Send inn {cgbf_submit_time} fra {cgbf_submit_ip}" unknown tag
"cgbf_submit_time"

This is because i used {cgbf_submit_time} instead of {$cgbf_submit_time} in a
"Handler "Email results to specified adresses"

When changing this to {$cgbf_submit_time}, and updating it still reports the
same error.
I have also tried to delete the handler, but still not able to remove this. When
I go back into the handler after saving, it chows my changes. But if I go to
another section of the admin-site, and then back to CGBF, it reverts to my old
handler template.

I have also checked the database (cms_mod_cgbf_forms), at it contains the old
template.


History

Comments
avatar
Date: 2017-06-30 14:11
Posted By: Robert Campbell (calguy1000)

The current 'form' object is saved in the session and not explicitly saved to
the database until you click the 'save' button.

When you leave CGBF via a link and then come-back in the data will be fetched
from the database, thus any unsaved information is lost.   That's why there are
warning messages and reminders.
      
avatar
Date: 2017-07-03 03:57
Posted By: Tomas Amsrud (tamsrud)

Ok. I still didnt understand at first. Even after your explanation.

But I now see it, that I did only click "Submit" on the hander, but didnt click
"Save" or "Apply" afterwards, and so information was lost. And of course, I now
also see the warning message.

I still think its a bit misleading, that after clicking a "submit" button, it is
not saved. I will think this will be a bit confusing for the regular user. (I
have done web-programming for 20 years now, have about 60 sites online at the
current time with CMSMS, and still didnt catch this).

But it is not a bug, as it works as intended. ;-)
      
Updates

Updated: 2017-07-26 12:49
resolution_id: 10 => 9
state: Open => Closed

Updated: 2017-06-30 14:11
resolution_id: 5 => 10

Updated: 2017-06-27 09:29
summary: Cannot update halder template => Cannot update handler template
resolution_id: => 5