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

Self Registration #935

Merged
merged 77 commits into from
Oct 22, 2016
Merged

Self Registration #935

merged 77 commits into from
Oct 22, 2016

Conversation

DawoudIO
Copy link
Contributor

@DawoudIO DawoudIO commented Aug 26, 2016

@DawoudIO DawoudIO added this to the 2.2.0 milestone Aug 26, 2016
@@ -353,4 +354,8 @@ function reportIssue($data)
return $result;
}

function getConfig($configName) {
Copy link
Contributor

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

@crossan007
Copy link
Contributor

The registration form is missing the Zip Code..

@crossan007
Copy link
Contributor

Country Field should be a dropdown

@crossan007
Copy link
Contributor

crossan007 commented Oct 20, 2016

Fatal error: Class 'GoogleMapAPI' not found in /var/www/public/Include/GeoCoder.php on line 22

Occurs on http://192.168.33.10/FamilyView.php?FamilyID=1

$displayEditedBy = $editor->getFullName();
$displayEditedBy = gettext("Unknown");
if ($dbNote->getDisplayEditedBy() == "-1") {
$displayEditedBy = gettext("Self Registration");
Copy link
Contributor

Choose a reason for hiding this comment

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

My self-entered families still show as unknown:

image

Copy link
Contributor Author

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...

@crossan007
Copy link
Contributor

Why does a member's birthday show up in PersonView.php
image

@crossan007
Copy link
Contributor

crossan007 commented Oct 20, 2016

Fatal error: Call to a member function getBooleanValue() on null in /var/www/public/Login.php on line 273

on
http://192.168.33.10/Login.php?Logoff=True When logging into a restored 2.2.4 database

@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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);
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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";
Copy link
Contributor

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

Copy link
Contributor Author

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

@@ -79,7 +79,6 @@
}

$birthday = $body["memberBirthday-" . $x];
$person->setTitle($birthday);
Copy link
Contributor

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',
Copy link
Contributor

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?

@DawoudIO DawoudIO merged commit 024c8d5 into develop Oct 22, 2016
@DawoudIO DawoudIO deleted the external-mvc-site branch October 22, 2016 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants