tingobol / yii-rights

Automatically exported from code.google.com/p/yii-rights
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Error when saving Operations update screen with wildcard name #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Update a wildcard item for a controller action, e.g. Post.* is a good 
example in your demo blog.
2. Try and add a description (or just save the operation).
3. Upon save, I get an 'An item with this name already exists.' error below the 
name box.

What is the expected output? What do you see instead?

The description or any changes for that matter should save. This problem only 
appears to occur for wildcard controllers (*). The occurs also occurs just 
trying to re-save an existing operation, i.e. without making any changes.

The error does not occur for single action operations, e.g. Post.Update

What version of the product are you using? On what operating system?

I am using version 1.2.0 (I don't recall seeing this in 1.1.0).

Mac OS X 10.6 - Google Chrome 8.0.552.231

Please provide any additional information below.

Workaround: You can add a description if you save the controller with a 
temporary name, e.g. Foo.Posts.* Then go back in and change the name back to 
the original and it will save Ok (but only once).

Note: I have seen this error on my own system and the test blog demo - so I 
don't think it is my installation :)

Hope this helps!

Original issue reported on code.google.com by rob.ande...@gtempaccount.com on 11 Jan 2011 at 9:41

Attachments:

GoogleCodeExporter commented 9 years ago
I've fixed it, I'll release the package with this fix later tonight. Thanks for 
reporting this issue.

Original comment by Christof...@gmail.com on 11 Jan 2011 at 5:38