silvershop/silvershop-stock

multiple warehouse error

Closed this issue · 0 comments

I created 2 warehouses, and when i visited the product variation detail form in CMS, the first warehouse was displayed twice (rather than displaying both warehouses).

I thought something wrong with the cache, i refresh the page with URL: admin/catalog/Product/EditForm/field/Product/item/11/ItemEditForm/field/Variations/item/1/edit

but i got the following error:
`[Warning] SS_HTMLValue::getContent(): ID Form_StockLevels_GridFieldEditableColumns_1_Title already defined
GET /admin/catalog/Product/EditForm/field/Product/item/11/ItemEditForm/field/Variations/item/1/edit

Line 27 in /home/userhome/public_html/test407/framework/model/HTMLValue.php

Source

18 }
19
20 abstract public function setContent($fragment);
21
22 /**
23 * @param string $content
24 * @return string
25 */
26 public function getContent() {
27 $doc = clone $this->getDocument();
28 $xp = new DOMXPath($doc);
29
30 // If there's no body, the content is empty string
31 if (!$doc->getElementsByTagName('body')->length) return '';
32
33 // saveHTML Percentage-encodes any URI-based attributes. We don't want this, since it interferes with
Trace

SS_HTMLValue->getContent() 
ShortcodeParser.php:590
ShortcodeParser->parse(

Stock

Main Warehouse
Main Warehouse
) HTMLText.php:188 HTMLText->forTemplate() ViewableData.php:476 ViewableData->XML_val(FieldHolder,,1) call_user_func_array(Array,Array) SSViewer.php:179 SSViewer_Scope->__call(XML_val,Array) SSViewer.php:550 SSViewer_DataPresenter->__call(XML_val,Array) .cache.framework.admin.templates.Includes.LeftAndMain_EditForm.ss:161 SSViewer_DataPresenter->XML_val(FieldHolder,,1) .cache.framework.admin.templates.Includes.LeftAndMain_EditForm.ss:161 include(/home/userhome/public_html/test407/silverstripe-cache/userhome/.cache.framework.admin.templates.Includes.LeftAndMain_EditForm.ss) SSViewer.php:1059 SSViewer->includeGeneratedTemplate(/home/userhome/public_html/test407/silverstripe-cache/userhome/.cache.framework.admin.templates.Includes.LeftAndMain_EditForm.ss,Form,,Array,) SSViewer.php:1119 SSViewer->process(Form,) ViewableData.php:341 ViewableData->renderWith(Array) Form.php:1550 Form->forTemplate() ViewableData.php:476 ViewableData->XML_val(ItemEditForm,,1) call_user_func_array(Array,Array) SSViewer.php:179 SSViewer_Scope->__call(XML_val,Array) SSViewer.php:550`

error-ss-stock