Closed (duplicate)
Project:
Context
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2011 at 21:26 UTC
Updated:
4 Aug 2011 at 17:56 UTC
Jump to comment: Most recent file
Comments
Comment #1
muschpusch commentedpatch would be great! Until then you can delete / rename the record in context table...
Comment #2
btmash commentedYep, that is precisely what I did. I'm a bit confused as I try to figure out where the validation takes place. I see the function
context_ui_edit_name_validatebut didn't see it actually run. Trying to insert a second context with the same name caused a PDOException to occur. Seems like this might be a larger issue?Attaching pic.
Comment #3
btmash commentedOk, it seems like the error stemmed from the fact that the isset() check on the validation was missing being NOT isset. I also added in the $form parameter that is defined in the forms_api_reference. Patch needs review but from what I see, this now actually performs validation and also gets rid of the pdoexception. Marking at high priority due to the type of bug and behavior on 'duplicate' name.
Comment #4
febbraro commentedThis is a duplicate of #1141394: Context Allows / character in machine names which breaks: add, edit, delete, and export Already fixed in git.