CoreBOSBB
vendors module : related list does not load - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: User Support (https://discussions.corebos.org/forumdisplay.php?fid=6)
+--- Thread: vendors module : related list does not load (/showthread.php?tid=78)



vendors module : related list does not load - saidmsl - 01-25-2015

Hi,

using latest github version of corebos

under the vendor more information tab , any of the related list (products, ...) does not load

it seems the tbl_Vendors_Products is undefined in the loadRelatedListBlock function

rgds


Re: vendors module : related list does not load - saidmsl - 01-25-2015

have changed it in relateslistcontents.tpl

function loadRelatedListBlock


var responseData = trim(response.responseText);
// MSL : error on vendors
var n = target.indexOf("_");
var res = target.substring(n+1, 100);
var p = res.indexOf("_");
var module = target.substring(n+1, n+p+1);
if (module == 'Vendors') {
document.getElementById(target).innerHTML = responseData;
} else {
target_element.update(responseData);
}

------------

seems the target_element.update does not work on the vendors module, don't understand why


Re: vendors module : related list does not load - joebordes - 01-25-2015

Sorry for that. This was introduced when I developed the new address capture selection in the vendors popup screen.

I didn't test it enough and really didn't think that part of the code would be affected.

I think I have fixed it, by using the default jQuery library instead of a more up to date version.

The fix is here:

<!-- m --><a class="postlink" href="https://github.com/tsolucio/corebos/commit/6bda816ba2c4fa96e5726fc3b615db9ad5a2f43b">https://github.com/tsolucio/corebos/com ... 9ad5a2f43b</a><!-- m -->

Thanks for the catch and informing.

BTW, thanks to this issue I fixed another minor bug <!-- s:-) --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->

<!-- m --><a class="postlink" href="https://github.com/tsolucio/corebos/commit/ea2b5c451d69b9d5a168be2f59e7b53803d87a4e">https://github.com/tsolucio/corebos/com ... 3803d87a4e</a><!-- m -->


Re: vendors module : related list does not load - saidmsl - 01-26-2015

Hi,

Thanks ,
it works


thanks again