diff --git a/views/view_10_admin__7_import.class.php b/views/view_10_admin__7_import.class.php index 321e4999..d9bd8627 100644 --- a/views/view_10_admin__7_import.class.php +++ b/views/view_10_admin__7_import.class.php @@ -154,14 +154,14 @@ private function _preparePreview() case 'existing': if (empty($_REQUEST['groupid'])) { add_message(_("You must choose a group first"), 'error'); - $this->stage = 'begin'; + $this->_stage = 'begin'; return; } break; case 'new': if (!strlen(array_get($_REQUEST, 'new_group_name'))) { add_message(_("You must enter a name for the new group"), 'error'); - $this->stage = 'begin'; + $this->_stage = 'begin'; return; } break; @@ -305,7 +305,11 @@ private function _preparePreview() continue; } - $this->_captureErrors($i); + $ei = $i; + $name = array_get($row, 'first_name', '').' '.array_get($row, 'last_name', ''); + if (strlen(trim($name))) $ei .= ' ('.$name.')'; + $this->_captureErrors($ei); + if (!empty($row['congregation'])) { $row['congregationid'] = Congregation::findByName($row['congregation']); } @@ -431,7 +435,7 @@ private function _preparePreview() if (!empty($row_errors)) { $msg = _('Your import file is not valid. Please correct the following errors and try again:').'