User tests: Successful: Unsuccessful:
Fixes #7311
Module, Article and Category creation applies a wrong default values for the access level. Instead of the one from the global config it just takes none, and thus the first in the list is selected.
This is a regression introduced with #6966 and some similar PRs.
Set the correct default value.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
@infograf768 @nonumber is right. To reproduce activate a search filter. Like one for the categories, then it breaks the access again.
Not only theoretically, also practically :)
It is not working for me without the extra check.
This can be due to difference in PHP version (isset() functions a bit differently across versions).
This can be due to difference in PHP version (isset() functions a bit differently across versions).
yep.
I changed it to use !emtpy()
instead, it should do the same as Peter suggested.
I also changed it for the other lines there.
empty()
is a boolean check with an isset()
integrated
Labels |
Added:
?
|
Priority | Medium | ⇒ | Urgent |
Status | Pending | ⇒ | Ready to Commit |
Category | ⇒ | Administration UI/UX |
Easy | No | ⇒ | Yes |
Rel_Number | 0 | ⇒ | 7311 |
Relation Type | ⇒ | Pull Request for |
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-07-02 13:00:36 |
Closed_By | ⇒ | mbabker |
Labels |
Removed:
?
|
You need to check the $filters['access'] for being an empty string too.
The
isset($filters['access'])
will return true even if empty (as $filters is an array).So you need to do:
(isset($filters['access']) && $filters['access'] !=''
`