-
Notifications
You must be signed in to change notification settings - Fork 4
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
Achille/dev 0.0.27 #33
Conversation
use DateTime; | ||
use Exception; | ||
use OCP\AppFramework\Http; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused Imports
$sql = 'SELECT * FROM `*PREFIX*calendars` WHERE `*PREFIX*calendars`.principaluri = ?'; | ||
return $this->execSQLNoJsonReturn($sql, array($principalUri)); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SQL query to get the calendars that belong to the user. Used to select the calendar when adding a new event with the new form.
if (dtEnd > periodEnd) | ||
dtEnd = periodEnd | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix to the total count : used to add the full length of an event when the event started in the period but ended after (or the opposit)
charactersLength)); | ||
} | ||
return result; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to utils.js
'Astreinte', | ||
'Férié', | ||
'Total' | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more hard coded values (except first and last columns)
} | ||
} | ||
oReq.send(data) | ||
return oReq; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New XHR functions used in the new form
New Feature
Added a form directly in WAI to create events automatically, formatted just as needed.
HR Summary
ALLOWED_PLACES
list to fill the header of the table instead of the temporary hardcoded values.Refactor