Fixed: notices on order view page after order stauts is deleted

This commit is contained in:
vishalsingh.qlo325
2025-06-03 19:28:52 +05:30
parent 5d1258f607
commit 0db3b0731a
2 changed files with 4 additions and 4 deletions

View File

@@ -217,8 +217,8 @@
{foreach from=$history item=row key=key}
{if ($key == 0)}
<tr>
<td style="background-color:{$row['color']}"><img src="{$link->getMediaLink("`$img_dir`os/`$row['id_order_state']|intval`.gif")}" width="16" height="16" alt="{$row['ostate_name']|stripslashes}" /></td> {* by webkul to get media link *}
<td style="background-color:{$row['color']};color:{$row['text-color']}">{$row['ostate_name']|stripslashes}</td>
<td style="background-color:{$row['color']}"><img src="{$link->getMediaLink("`$img_dir`os/`$row['id_order_state']|intval`.gif")}" width="16" height="16" alt="{if !empty($row['ostate_name'])}{$row['ostate_name']|stripslashes}{/if}" /></td> {* by webkul to get media link *}
<td style="background-color:{$row['color']};color:{$row['text-color']}">{if !empty($row['ostate_name'])}{$row['ostate_name']|stripslashes}{/if}</td>
<td style="background-color:{$row['color']};color:{$row['text-color']}">{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{/if}</td>
<td style="background-color:{$row['color']};color:{$row['text-color']}">{dateFormat date=$row['date_add'] full=true}</td>
@@ -236,7 +236,7 @@
{else}
<tr>
<td><img src="{$link->getMediaLink("`$img_dir`os/`$row['id_order_state']|intval`.gif")}" width="16" height="16" /></td>
<td>{$row['ostate_name']|stripslashes}</td>
<td>{if !empty($row['ostate_name'])}{$row['ostate_name']|stripslashes}{/if}</td>
<td>{if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{else}&nbsp;{/if}</td>
<td>{dateFormat date=$row['date_add'] full=true}</td>
{if $can_edit}

View File

@@ -2151,7 +2151,7 @@ class ToolsCore
public static function getBrightness($hex)
{
if (Tools::strtolower($hex) == 'transparent') {
if (Tools::strtolower($hex) == 'transparent' || empty($hex)) {
return '129';
}