Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: bugs

[Bug 1453] can't delete a rule from alerts

 

 

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded


bugs at lists

May 7, 2009, 10:44 AM

Post #1 of 2 (579 views)
Permalink
[Bug 1453] can't delete a rule from alerts

http://bugs.bricolage.cc/show_bug.cgi?id=1453


Sarah Mercier <mercie_s [at] denison> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |mercie_s [at] denison




--- Comment #1 from Sarah Mercier <mercie_s [at] denison> 2009-05-07 18:44:44 ---
So when a rule is deleted, the remove function is called on that rule (which,
if I am not mistaken, should be in the file
/usr/local/bricolage/lib/Bric/Util/AlertType/Parts/Rule.pm) which essentially
sets an attribute called '_del' to 1.

But, if we look at /usr/local/bricolage/comp/widgets/add_more/add_more.mc which
is being used to create the form, when a rule is removed, the entire row is
removed as well, so when the form is sent, that data is no longer part of the
submission. Does that mean that when the 'save' in the Rule.pm function is
called, all the _del's that were set aren't seen because they are not being
passed, which is why the database doesn't know they are being removed?

If this is the case, anyone have ideas as to how best to go about fixing it?


--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


bugs at lists

May 8, 2009, 12:09 PM

Post #2 of 2 (524 views)
Permalink
[Bug 1453] can't delete a rule from alerts [In reply to]

http://bugs.bricolage.cc/show_bug.cgi?id=1453





--- Comment #2 from Sarah Mercier <mercie_s [at] denison> 2009-05-08 20:09:37 ---
Same code is used when adding and removing file extensions from MIME types, but
it appears to work for those even though it doesn't work for Alert Rules.
Possibly due to the number of rows in the Alert rules or the fact they have
drop-down menus?


--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.