Skip to content

Commit

Permalink
Fix one custom query
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Apr 1, 2020
1 parent f3f31e3 commit 54c54eb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions doc/changelogs/changelog-0.19.1-to-0.19.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog from version 0.19.1 to 0.19.2

. fixed bad sql in in 0.19.1
2 changes: 1 addition & 1 deletion extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<software>
<metadata>
<name>eZ DB Integrity extension</name>
<version>0.19.1</version>
<version>0.19.2</version>
<copyright>Copyright (C) 2014-2020 Gaetano Giunta</copyright>
<license>GNU General Public License v2.0</license>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion ezinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static function info()
{
return array(
'Name' => "<a href=\"http://projects.ez.no/ezdbintegrity\">eZ DB Integrity extension</a>",
'Version' => "0.19.1",
'Version' => "0.19.2",
'Copyright' => "Copyright (C) 2014-2020 Gaetano Giunta",
'License' => "GNU General Public License v2.0"
);
Expand Down
2 changes: 1 addition & 1 deletion settings/ezdbintegrity.ini
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,4 @@ policy_limitations_for_missing_subtrees[sql]= SELECT p.role_id, p.id as policy_i
policy_limitations_for_missing_locations[sql]=SELECT p.role_id, p.id as policy_id, p.module_name, p.function_name, l.identifier, v.value FROM ezpolicy_limitation_value v JOIN ezpolicy_limitation l ON v.limitation_id = l.id JOIN ezpolicy p ON l.policy_id = p.id LEFT JOIN ezcontentobject_tree n ON v.value = n.node_id WHERE l.identifier = 'Node' AND n.node_id IS NULL ORDER BY p.role_id, p.module_name, p.function_name, p.id, v.value
policy_limitations_for_missing_classes[sql]= SELECT p.role_id, p.id as policy_id, p.module_name, p.function_name, l.identifier, v.value FROM ezpolicy_limitation_value v JOIN ezpolicy_limitation l ON v.limitation_id = l.id JOIN ezpolicy p ON l.policy_id = p.id LEFT JOIN ezcontentclass c ON v.value = c.id WHERE l.identifier IN ('Class', 'ParentClass') AND c.id IS NULL ORDER BY p.role_id, p.module_name, p.function_name, p.id, v.value
policy_limitations_for_missing_sections[sql]= SELECT p.role_id, p.id as policy_id, p.module_name, p.function_name, l.identifier, v.value FROM ezpolicy_limitation_value v JOIN ezpolicy_limitation l ON v.limitation_id = l.id JOIN ezpolicy p ON l.policy_id = p.id LEFT JOIN ezsection s ON v.value = s.id WHERE l.identifier IN ('Section', 'NewSection') AND s.id IS NULL ORDER BY p.role_id, p.module_name, p.function_name, p.id, v.value
policy_limitations_for_missing_states[sql]= SELECT p.role_id, p.id as policy_id, p.module_name, p.function_name, l.identifier, v.value FROM ezpolicy_limitation_value v JOIN ezpolicy_limitation l ON v.limitation_id = l.id JOIN ezpolicy p ON l.policy_id = p.id LEFT JOIN ezcobj_state s ON v.value = s.id WHERE l.identifier IN ('State', NewState') AND s.id IS NULL ORDER BY p.role_id, p.module_name, p.function_name, p.id, v.value
policy_limitations_for_missing_states[sql]= SELECT p.role_id, p.id as policy_id, p.module_name, p.function_name, l.identifier, v.value FROM ezpolicy_limitation_value v JOIN ezpolicy_limitation l ON v.limitation_id = l.id JOIN ezpolicy p ON l.policy_id = p.id LEFT JOIN ezcobj_state s ON v.value = s.id WHERE l.identifier IN ('State', 'NewState') AND s.id IS NULL ORDER BY p.role_id, p.module_name, p.function_name, p.id, v.value

0 comments on commit 54c54eb

Please sign in to comment.