Skip to content

Commit

Permalink
Add a 'warning' case to getMsg(), as there is mixed use of 'warn' and…
Browse files Browse the repository at this point in the history
… 'warning' usage with prnMsg() calls. The 'warning' (before this change) defaults to an 'info' style message.
  • Loading branch information
TurboPT authored and timschofield committed Feb 26, 2018
1 parent e506e54 commit e514758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/Change.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
webERP Change Log

27/1/18 PaulT: Remove unused $db parameter from DB_query(), DB_error_no() and DB_error_msg() other DB-related function calls.
31/1/18 PaulT: Add a 'warning' case to getMsg(), as there is mixed use of 'warn' and 'warning' usage with prnMsg() calls. The 'warning' (before this change) defaults to an 'info' style message.
27/1/18 PaulT: Remove unused $db parameter from DB_query(), DB_error_no(), DB_error_msg() and other DB-related function calls.
27/1/18 Paul Becker (PaulT commit): Remove stray ; appearing after if, else, and foreach blocks. (Reported in forums: http://www.weberp.org/forum/showthread.php?tid=8064)
27/1/18 PaulT: MiscFunctions.php, Z_ChangeStockCode.php, Z_ChangeGLAccountCode.php: Remove unused $db parameter from function ChangeFieldInTable().
26/1/18 Andrew Galuski/Tim (PaulT merge/commit): New picking list feature for regular and controlled/serialized stock. This feature improves (and replaces) the current pick list handling. (Reported in forums by HDeriauFF: http://www.weberp.org/forum/showthread.php?tid=7988)
Expand Down
1 change: 1 addition & 0 deletions includes/MiscFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function getMsg($Msg,$Type='info',$Prefix=''){
}
break;
case 'warn':
case 'warning':
$Class = 'warn';
$Prefix = $Prefix ? $Prefix : _('WARNING') . ' ' . _('Message Report');
if (isset($_SESSION['LogSeverity']) and $_SESSION['LogSeverity']>1) {
Expand Down

0 comments on commit e514758

Please sign in to comment.