Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding modComment to SalesOrder messes up HTML
#1
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.
Reply
#2
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.
Joe
TSolucio
Reply
#3
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.
Reply
#4
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?
Joe
TSolucio
Reply
#5
(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.
Reply
#6
Found it. InventoryDetailView.tpl in Smarty/templates/Inventory was missing colspan="2" on lines 343 and 139.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)