Skip to content
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

Added two new features to facetoface #3

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

stgabhas
Copy link

Hello,
I have added two new features:

  1. Disable Auto Enrollment of user xx days before a session starts, (when a user is on wait-list due to over booking)
  2. Disable New Enrollment of user xx days before a session starts.

Thank you.

Abhas Bhatt added 2 commits May 28, 2013 10:21
@stgabhas
Copy link
Author

I have updated the code, as you commented. Please check and let me know.
Thank you.
Abhas

@@ -561,13 +561,11 @@ function facetoface_update_calendar_entries($session, $facetoface = null){
*/
function facetoface_update_attendees($session) {
global $USER, $DB;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-add line deleted here

@aly
Copy link
Contributor

aly commented May 30, 2013

Few more comments, once those are fixed I'll test it out :-)

…Database calls that is made in the renderer
@stgabhas
Copy link
Author

I have pushed a new update as according to your input. (Except for the calling of DB in renderer).
About the Day 0 in the enrollment, I have added an explanation that Day 0 means the same day the session starts.
Waiting for your comments.
Thank you.

$table = new xmldb_table('facetoface');
$field = new xmldb_field('disablewithindays', XMLDB_TYPE_INTEGER, '3', null, XMLDB_NOTNULL, null, '0', 'approvalreqd');


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra new line

@@ -34,7 +34,8 @@
<FIELD NAME="shortname" TYPE="char" LENGTH="32" NOTNULL="false" SEQUENCE="false" PREVIOUS="timemodified" NEXT="showoncalendar"/>
<FIELD NAME="showoncalendar" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" PREVIOUS="shortname" NEXT="approvalreqd"/>
<FIELD NAME="approvalreqd" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="showoncalendar" NEXT="usercalentry"/>
<FIELD NAME="usercalentry" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" PREVIOUS="approvalreqd"/>
<FIELD NAME="usercalentry" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" PREVIOUS="approvalreqd" NEXT="disablewithindays"/>
<FIELD NAME="disablewithindays" TYPE="int" LENGTH="3" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="usercalentry"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix indenting of this line

@aly
Copy link
Contributor

aly commented Jun 4, 2013

Hopefully my comments about the Database calls is helpful. If you have any questions let me know.

Thanks,
Alastair

Abhas Bhatt added 3 commits June 5, 2013 11:12
…pace, extra lines, and indentation. The css 100% width on styles.php is not working, and I am still working on the database calls mentioned in the last comment
@stgabhas
Copy link
Author

stgabhas commented Jun 5, 2013

I have updated the code as instructed. And I have removed a couple of database calls from renderer.php and lib.php. Please refer to todays commit.
Thank you.

@stgabhas
Copy link
Author

stgabhas commented Jun 5, 2013

The issue with 100% width on styles.css has been fixed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants