Skip to content

Commit

Permalink
#17 [CompetitorPrice] fix: SQL issue on dolibarr 17
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Dec 14, 2023
1 parent 811ba39 commit bc46584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/competitorprice.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class CompetitorPrice extends CommonObject
'url_competitor' => ['type' => 'url', 'label' => 'URLCompetitor', 'enabled' => '1', 'position' => 110, 'notnull' => 0, 'visible' => 1, 'cssview' => 'wordbreak'],
'competitor_date' => ['type' => 'datetime', 'label' => 'CompetitorDate', 'enabled' => '1', 'position' => 120, 'notnull' => 1, 'visible' => 1],
'fk_product' => ['type' => 'integer:Product:product/class/product.class.php:1', 'label' => 'Product', 'enabled' => '1', 'position' => 130, 'notnull' => 1, 'visible' => 0, 'index' => 1, 'foreignkey' => 'product.rowid'],
'fk_soc' => ['type' => 'integer:Societe:societe/class/societe.class.php:1:status=1 AND entity IN (__SHARED_ENTITIES__)', 'label' => 'Competitor', 'enabled' => '1', 'position' => 140, 'notnull' => 1, 'visible' => 1, 'index' => 1, 'foreignkey ' => 'societe.rowid', 'css' => 'maxwidth500 widthcentpercentminusxx'],
'fk_soc' => ['type' => 'integer:Societe:societe/class/societe.class.php:1:((status:=:1) AND (entity:IN:__SHARED_ENTITIES__))', 'label' => 'Competitor', 'enabled' => '1', 'position' => 140, 'notnull' => 1, 'visible' => 1, 'index' => 1, 'foreignkey ' => 'societe.rowid', 'css' => 'maxwidth500 widthcentpercentminusxx'],
'fk_user_creat' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserAuthor', 'enabled' => '1', 'position' => 150, 'notnull' => 1, 'visible' => 0, 'index' => 1, 'foreignkey' => 'user.rowid'],
'fk_user_modif' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserModif', 'enabled' => '1', 'position' => 160, 'notnull' => -1, 'visible' => 0],
];
Expand Down

0 comments on commit bc46584

Please sign in to comment.