News:

Looking for a good read? Check out the SimpleDesk Team Blog.

Main Menu

Topic solved
This topic is marked as solved and as such require no attention unless you want to bump this issue.

[Fixed] Undefined index: new

Started by wintstar, December 07, 2015, 05:56:28 PM

Previous topic - Next topic

wintstar

SimpleDesk version: SimpleDesk 2.0.1
Latest revision from the GitHub. Download is of branch smf21 from 07.12.2015.

In the Helpdesk overview page, display this error message:
Notice: Undefined index: new in C:\xampp\htdocs\smf21\Themes\default\sd_template\SimpleDesk.template.php (main sub template - eval?) on line 91
Notice: Undefined index: new in C:\xampp\htdocs\smf21\Themes\default\sd_template\SimpleDesk.template.php (main sub template - eval?) on line 407
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\smf21\Themes\default\sd_template\SimpleDesk.template.php (main sub template - eval?) on line 407

sd_source/SimpleDesk.php at line 401
Code (php) Select
            'new' => array(
                'block_icon' => 'status.png',
                'title' => $txt['shd_status_' . TICKET_STATUS_NEW . '_heading'],
                'where' => 'hdt.id_member_assigned != ' . $user_info['id'] . ' AND hdt.status = ' . TICKET_STATUS_NEW,
                'display' => $is_staff,
                'count' => shd_count_helpdesk_tickets('new'),
                'columns' => shd_get_block_columns('new'),
                'required' => false,
                'collapsed' => false,
            ),


               
Code (php) Select
'required' => false,  ?should be?
Code (php) Select
'required' => $is_staff,

SleePy

Actually the fix is in the source, I did a bad when adding a new feature in.  Fixed it up in revision 8d34434
Jeremy D — Spare-Developer