|
@@ -976,7 +976,7 @@ class ProductAttribute extends CommonObject
|
|
|
* Update a attribute to have a higher position
|
|
|
*
|
|
|
* @param int $rowid Id of line
|
|
|
- * @return int <0 KO >0 OK
|
|
|
+ * @return int <0 KO, >0 OK
|
|
|
*/
|
|
|
public function attributeMoveUp($rowid)
|
|
|
{
|
|
@@ -987,13 +987,15 @@ class ProductAttribute extends CommonObject
|
|
|
|
|
|
// Update position of attribute
|
|
|
$this->updateAttributePositionUp($rowid, $position);
|
|
|
+
|
|
|
+ return 1;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Update a attribute to have a lower position
|
|
|
*
|
|
|
* @param int $rowid Id of line
|
|
|
- * @return int <0 KO >0 OK
|
|
|
+ * @return int <0 KO, >0 OK
|
|
|
*/
|
|
|
public function attributeMoveDown($rowid)
|
|
|
{
|
|
@@ -1007,6 +1009,8 @@ class ProductAttribute extends CommonObject
|
|
|
|
|
|
// Update position of attribute
|
|
|
$this->updateAttributePositionDown($rowid, $position, $max);
|
|
|
+
|
|
|
+ return 1;
|
|
|
}
|
|
|
|
|
|
/**
|