Fixed: Errors in console and notices in Admin Products which occurs when admin tries to save the price or seo tab without the room type infomrmation
This commit is contained in:
@@ -265,7 +265,7 @@ $(document).ready(function () {
|
||||
</div>
|
||||
|
||||
<!-- by webkul -->
|
||||
{if $WK_ALLOW_ADVANCED_PAYMENT}
|
||||
{if isset($WK_ALLOW_ADVANCED_PAYMENT) && $WK_ALLOW_ADVANCED_PAYMENT}
|
||||
<div class="form-group">
|
||||
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}</span></div>
|
||||
<label class="control-label col-sm-2">
|
||||
|
||||
@@ -304,7 +304,7 @@ product_tabs['Seo'] = new function(){
|
||||
var self = this;
|
||||
|
||||
this.onReady = function() {
|
||||
if ($('#link_rewrite_'+id_lang_default).length)
|
||||
if ($('#link_rewrite_'+id_lang_default).length && id_product)
|
||||
if ($('#link_rewrite_'+id_lang_default).val().replace(/^\s+|\s+$/gm,'') == '') {
|
||||
updateFriendlyURLByName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user