File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
88## [ Unreleased]
99
10+ ### Fixed
11+
12+ - Fix ODT export generation
13+
1014## [ 2.11.0] - 2025-07-10
1115
1216### Fixed
Original file line number Diff line number Diff line change 3535$ PluginOrderOrder = new PluginOrderOrder ();
3636
3737if ($ config ->canGenerateOrderPDF () && ($ PluginOrderOrder ->canGenerateWithoutValidation () || $ PluginOrderOrder ->canGenerate ())) {
38- $ PluginOrderOrder = new PluginOrderOrder ();
38+ $ criteria = ['id ' => $ _GET ['id ' ]] + getEntitiesRestrictCriteria (
39+ getTableForItemType (PluginOrderOrder::class),
40+ '' ,
41+ '' ,
42+ true
43+ );
3944
40- // load related order with entity restrict criteria
41- if (
42- $ PluginOrderOrder ->getFromDBByCrit ([
43- 'id ' => $ _GET ['id ' ],
44- 'entities_id ' => getEntitiesRestrictCriteria (
45- getTableForItemType (PluginOrderOrder::class),
46- '' ,
47- '' ,
48- true
49- ),
50- ])
51- ) {
45+ if ($ PluginOrderOrder ->getFromDBByCrit ($ criteria )) {
5246 $ PluginOrderOrder ->generateOrder ($ _GET );
5347 } else {
5448 Html::displayRightError ("You don't have permission to perform this action. " );
You can’t perform that action at this time.
0 commit comments