Page MenuHomeFeedback Tracker

BIS_fnc_showNotification no longer displays text
Closed, ResolvedPublic

Description

When calling BIS_fnc_showNotification, the correct icon is displayed but the text does not show.

This may be a new issue with 0.58 since I am fairly sure it worked before.

I have tested using the templates TaskSucceeded, TaskFailed, TaskCanceled, TaskCreated and TaskAssigned, and the issue occurs in all cases.

Details

Legacy ID
3444402093
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Editor
Steps To Reproduce
  1. Call the function using the format:

["TaskSucceeded", ["Job done"]] call BIS_fnc_showNotification;

  1. Note the correct display of icon but no text.

Event Timeline

AndersMolin edited Additional Information. (Show Details)
AndersMolin set Category to Editor.
AndersMolin set Reproducibility to Always.
AndersMolin set Severity to None.
AndersMolin set Resolution to No Bug.
AndersMolin set Legacy ID to 3444402093.May 7 2016, 2:20 PM
Lt_Lyko added a subscriber: Lt_Lyko.May 7 2016, 2:20 PM

I can confirm the issue.

MadDogX added a subscriber: MadDogX.May 7 2016, 2:20 PM

Marking as reviewed.

I'm afraid your code is incorrect:
["TaskSucceeded", ["Job done"]] call BIS_fnc_showNotification;

Notification shows the task title as returned by taskDescription command (http://community.bistudio.com/wiki/taskDescription). However, the title is 2nd param in the returned param, not the 1st.

To mimic this behavior, push your text to the 2nd place:
["TaskSucceeded", ["", "Job done"]] call BIS_fnc_showNotification;

Note: I recommend to use task functions (BIS_fnc_taskCreate and others in 'Tasks' category of the Functions viewer) or task modules which handle notifications automatically.

Mass close.