cross-solution / YAWIK

YAWIK is a web application. It can be used as an ATS applicant tracking system or as a jobboard.
https://yawik.org
MIT License
124 stars 67 forks source link

Notice: Trying to get property of non-object in index.recruiter.ajax.phtml #282

Closed fedys closed 8 years ago

fedys commented 8 years ago

If you are logged as an administrator you get the following notice: Trying to get property of non-object in /data/www/clients/client1/web1/YAWIK/module/Applications/view/applications/manage/index.recruiter.ajax.phtml on line 170 on the application page.

TiSiE commented 8 years ago

Because for administrators somehow the drafts (eg: isDraft: true) are shown. Drafts do not have a status yet.

Solutions:

I tend to like the first solution better...

fedys commented 8 years ago

Maybe I would add a check in the listing plus add an additional filter called draft with the following options: Do not display (the default one), Only and All

TiSiE commented 8 years ago

From the users' point of view, I would prefer combining this filter in the status select box, so one can select:

fedys commented 8 years ago

You are right, I did not realize that drafts have no states.

TiSiE commented 8 years ago

While it is technically possible to implement it the outlined way, there might be privacy issues.
An application draft is created PRIOR to the user accepted (and read) the privacy agreement, which means using the data and displaying them to the admin/recruiters CAN be problematic.

I've talked to @cbleek and he shared my apprehensions. Which means that application drafts MUST NOT be displayed to anyone (except the one who actually created it.)

So Solution 1 must be implemented.