CoreBOSBB
Adding modComment to SalesOrder messes up HTML - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18)
+--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4)
+--- Thread: Adding modComment to SalesOrder messes up HTML (/showthread.php?tid=640)



Adding modComment to SalesOrder messes up HTML - Guido1982 - 04-26-2017

I used the helperScript to add modComments to SalesOrders. Worked, but the HTML is all messed up. The sidebar get launched to the far left bottom and there is a lot of offset on the left. Some problem in a Smarty template?

I used the class method 'removeWidgetFrom' in stead of 'addWidgetTo' to remove the comments and all is well now. Maybe this is some inventory-modules Smarty template issue? One note, this install is not very recent.


RE: Adding modComment to SalesOrder messes up HTML - joebordes - 04-26-2017

You don't need that script anymore. In the latest version you can go to Settings > Modules Manager > Comments > Settings (hammer icon) > Activate Modules

I tried activating comments on SO and it worked fine. Can you reproduce your issue in the online demo? Try emptying the Smarty/templates_c cache, see if that helps.


RE: Adding modComment to SalesOrder messes up HTML - Guido1982 - 04-26-2017

Cool thing with the comment-module switches!

Anyway, same result, even after clearing the Smarty cache. Will check this later since this is a live server and in use during office hours.


RE: Adding modComment to SalesOrder messes up HTML - joebordes - 04-26-2017

I just tried in the online demo and it seems to be working correctly

http://corebos.org/demos/corebos/index.php?module=SalesOrder&parenttab=ptab&action=DetailView&record=10569

Do you have some other widgets that may be conflicting?


RE: Adding modComment to SalesOrder messes up HTML - Guido1982 - 04-28-2017

(04-26-2017, 04:30 PM)joebordes Wrote: I just tried in the online demo and it seems to be working correctly

http://corebos.org/demos/corebos/index.php?module=SalesOrder&parenttab=ptab&action=DetailView&record=10569

Do you have some other widgets that may be conflicting?

That may be the case. I'll try again today after office hours, when I have some time to inspect the elements.


RE: Adding modComment to SalesOrder messes up HTML - Guido1982 - 05-02-2017

Found it. InventoryDetailView.tpl in Smarty/templates/Inventory was missing colspan="2" on lines 343 and 139.