When editing entity accesslevel is set to private
Opened this issue · 4 comments
1.9.6
When you edit the entity you'd have to choose 'custom' again in the accesslevel input because it's set to 'private'. When you don't do it and you edit, let's say the content or the title and save the entity again it's accesslevel is saved to 'private'.
Second small bug (maybe) is that your own user pops up in the tokeninput as well if you type your name, maybe it should be excluded?
I can't reproduce this, perhaps you have something overriding the input/access view that is rendering unexpected markup? Or look for javascript errors on the page.
mm, I'll look further.
Just tried it on a clean 1.9.6 install with only Vroom, Elgg_tokeninput and granular_access installed and I have the same outcome. I write a blog, set it to custom access and choose a user, save and when I edit later it 'private' is selected untill I change it in the selectbox.
The accesslevel is saved though (it's set to granular_access and the user who should have access are set fine as well, it's just upon rendering of the level that it seems to be displayed.
I have the same issue on Elgg 1.9.5 (with Granular acess version 1.0.0-rc1, Token input 3.0.0.2, Vroom 1.0) All other non-bundled plugins are deactivated.
To reproduce: Add a new blog with the custom access. Save it. You see that access level is set as "Limited'. Then edit it. The access level is set to 'Private'.
Also if saving fails (say due to missing required information like blog subject), then access level remains "Custom' but Custom Access field (the list of people/groups included in the accesss) disappear. As a matter of fact, you don't even see the Custom Access field. You need to change the access level to another type and then back to Custom to see a (blank) Custom Access field.
regards.
I don't have a good way of making it 'sticky' at the moment, so that's expected. When you go back to edit it though the select will default to 'private' and then javascript will set it to 'custom' and load the selected custom access. Check for javascript errors.