Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2011 at 10:30 UTC
Updated:
1 Mar 2011 at 10:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
fagoHm, this would be odd if the rule name isn't properly prefix.
Suggested fix:
Let's add a check to RulesPlugin::save() that throws an exception if an invalid module/name combination is saved.
>+ '#disabled' => !$this->element->hasStatus(ENTITY_CUSTOM),
Couldn't we just use that for the usual var-config-form too?
Comment #2
fagoComment #3
klausiSimplified patch which disables the whole form for entities in code. Yay for consistency, as the form always looks the same, entity status independent.
I added another check for the machine name handling and did not touch RulesPlugin::save() for now.
Comment #4
fagothanks, committed.