-
Notifications
You must be signed in to change notification settings - Fork 443
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
Self Registration #935
Self Registration #935
Conversation
DawoudIO
commented
Aug 26, 2016
•
edited
Loading
edited
- Closes Add Self-Registration Feature #894
@@ -353,4 +354,8 @@ function reportIssue($data) | |||
return $result; | |||
} | |||
|
|||
function getConfig($configName) { |
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.
I think we should gradually kill off this function. Just call the ORM directly where we need to access config values.
I see no value in abstracting the ORM through SystemService.
I don't think it should be part of this PR though - see #963
The registration form is missing the Zip Code.. |
Country Field should be a dropdown |
|
$displayEditedBy = $editor->getFullName(); | ||
$displayEditedBy = gettext("Unknown"); | ||
if ($dbNote->getDisplayEditedBy() == "-1") { | ||
$displayEditedBy = gettext("Self Registration"); |
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.
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.
Correct, i could not find out how to make it show self registration or do we make it the head of the family etc...
on |
@@ -33,7 +33,8 @@ where `cfg_id` = 1037; | |||
delete from config_cfg where cfg_id ='18'; | |||
delete from config_cfg where cfg_id ='2001'; | |||
|
|||
INSERT INTO `config_cfg` (`cfg_id`, `cfg_name`, `cfg_value`, `cfg_type`, `cfg_default`, `cfg_tooltip`, `cfg_section`, `cfg_category`) VALUES | |||
INSERT INTO `config_cfg` (`cfg_id`, `cfg_name`, `cfg_value`, `cfg_type`, `cfg_default`, `cfg_tooltip`, `cfg_section`, `cfg_category`, `cfg_data`) VALUES |
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.
Syntax error:
Executed successfully in 0.008 s, 0 rows affected.
Line 1, column 1
Error code 1060, SQL state 42S21: Duplicate column name 'cfg_data'
Line 4, column 1
Executed successfully in 0.004 s, 1 rows affected.
Line 8, column 1
Executed successfully in 0.001 s, 1 rows affected.
Line 13, column 1
Executed successfully in 0 s, 1 rows affected.
Line 18, column 1
Executed successfully in 0.001 s, 1 rows affected.
Line 23, column 1
Executed successfully in 0.001 s, 1 rows affected.
Line 28, column 1
Executed successfully in 0.001 s, 0 rows affected.
Line 33, column 1
Executed successfully in 0.001 s, 0 rows affected.
Line 34, column 1
Error code 1136, SQL state 21S01: Column count doesn't match value count at row 2
Line 36, column 1
Executed successfully in 0 s, 0 rows affected.
Line 47, column 1
Executed successfully in 0.001 s, 0 rows affected.
Line 48, column 1
Executed successfully in 0.001 s, 0 rows affected.
Line 49, column 1
Execution finished after 0.019 s, 2 error(s) occurred.
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.
ya looks like a bad merge fixed
$family->setState($body["familyState"]); | ||
$family->setCountry($body["familyCountry"]); | ||
$family->setHomePhone($body["familyHomePhone"]); | ||
$family->setEnteredBy(0); |
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.
Did you mean for this to be -1 for timeline service to know it was self-registered?
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.
yep but it never set -1 in the db not sure why
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.
it has to do with
unsigned
flag on the column
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.
i got it to save to db but still not loading in the UI right... late work tonight
$family->setDateEntered(new \DateTime()); | ||
$family->save(); | ||
|
||
$className = "Regular Attender"; |
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.
The user is allowed to change these classes - we need to handle that somehow
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.
yes in the next version, maybe still in 2.3 i want to use some of the defaults in the setting like default City, Country etc #1167 will track this
google Map is not a valid class
to support -1 as self regestration
@@ -79,7 +79,6 @@ | |||
} | |||
|
|||
$birthday = $body["memberBirthday-" . $x]; | |||
$person->setTitle($birthday); |
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.
:-) hah. This was kind of a funny bug.
@@ -756,7 +756,7 @@ CREATE TABLE `note_nte` ( | |||
`nte_Text` text, | |||
`nte_DateEntered` datetime NOT NULL default '0000-00-00 00:00:00', | |||
`nte_DateLastEdited` datetime default NULL, | |||
`nte_EnteredBy` mediumint(8) unsigned NOT NULL default '0', | |||
`nte_EnteredBy` mediumint(8) NOT NULL default '0', |
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.
why are you using smallint(5) in the fam table, and mediumint(8) in the note table?