New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: new #32

Closed
jdarwood007 opened this Issue Dec 11, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@jdarwood007
Member

jdarwood007 commented Dec 11, 2015

Reference SimpleDesk Website: Undefined index: new

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

            '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,
            ),
           ````

'required' => false,
?should be?
'required' => $is_staff,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment