← Back to team overview

mahara-contributors team mailing list archive

[Bug 1100066] [NEW] dwoo function str doesn't take extra arguments that are "0"

 

Public bug reported:

in file htdocs/lib/dwoo/mahara/plugins/function.str.php, line 26.

The test for $arg1, $arg2, and $arg3 tests with just a plain "if"
statement, while it should check if the parameter is actually set,
otherwise values of "0", false, and other falsey values will not be
stored in the arguments array.

This can cause issues with plural strings.

** Affects: mahara
     Importance: Medium
     Assignee: Hugh Davenport (hugh-catalyst)
         Status: In Progress


** Tags: bite-sized dwoo translations

** Changed in: mahara
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1100066

Title:
  dwoo function str doesn't take extra arguments that are "0"

Status in Mahara ePortfolio:
  In Progress

Bug description:
  in file htdocs/lib/dwoo/mahara/plugins/function.str.php, line 26.

  The test for $arg1, $arg2, and $arg3 tests with just a plain "if"
  statement, while it should check if the parameter is actually set,
  otherwise values of "0", false, and other falsey values will not be
  stored in the arguments array.

  This can cause issues with plural strings.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1100066/+subscriptions


Follow ups

References