Skip to content

Commit

Permalink
On Product and Category ContentList screens add createContentWithLoca…
Browse files Browse the repository at this point in the history
…tion transitions and use in the New by Location forms because the create services meant for upload do not support this, thanks to eigood for reporting this, see mantle-usl PR #193
  • Loading branch information
jonesde committed Nov 4, 2022
1 parent b7607ed commit 2041ed5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -19,6 +19,8 @@ along with this software (see the LICENSE.md file). If not, see

<transition name="createContent"><service-call name="mantle.product.ProductServices.create#ProductCategoryContent"/>
<default-response url="."/></transition>
<transition name="createContentWithLocation"><service-call name="create#mantle.product.category.ProductCategoryContent"/>
<default-response url="."/></transition>
<transition name="downloadContent" read-only="true">
<parameter name="productCategoryContentId"/>
<actions>
Expand Down Expand Up @@ -59,7 +61,7 @@ along with this software (see the LICENSE.md file). If not, see
</form-single>
</container-dialog>
<container-dialog id="NewLocationDialog" button-text="New by Location">
<form-single name="NewLocationForm" transition="createContent" extends="NewContentForm">
<form-single name="NewLocationForm" transition="createContentWithLocation" extends="NewContentForm">
<field name="contentFile"><default-field><ignored/></default-field></field>
<field name="contentLocation"><default-field><text-line size="70"/></default-field></field>
<field-layout>
Expand Down
5 changes: 4 additions & 1 deletion screen/SimpleScreens/Catalog/Product/Content/ContentList.xml
Expand Up @@ -19,6 +19,9 @@ along with this software (see the LICENSE.md file). If not, see

<transition name="createContent"><service-call name="mantle.product.ProductServices.create#ProductContent"/>
<default-response url="."/></transition>
<transition name="createContentWithLocation"><service-call name="create#mantle.product.ProductContent"/>
<default-response url="."/></transition>

<transition name="downloadContent" read-only="true">
<parameter name="productContentId"/>
<actions>
Expand Down Expand Up @@ -68,7 +71,7 @@ along with this software (see the LICENSE.md file). If not, see
</form-single>
</container-dialog>
<container-dialog id="NewLocationDialog" button-text="New by Location">
<form-single name="NewLocationForm" transition="createContent" extends="NewContentForm">
<form-single name="NewLocationForm" transition="createContentWithLocation" extends="NewContentForm">
<field name="contentFile"><default-field><ignored/></default-field></field>
<field name="contentLocation"><default-field><text-line size="70"/></default-field></field>
<field-layout>
Expand Down

0 comments on commit 2041ed5

Please sign in to comment.