Skip to content

Commit

Permalink
Merge pull request #649 from coral-erm/sirsidynix
Browse files Browse the repository at this point in the history
Blank note fields created by resources/import.php
  • Loading branch information
jpeeblesSD authored Apr 8, 2020
2 parents abcc1f8 + b22dbe9 commit 290f668
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions resources/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -724,14 +724,16 @@ function createJsonFromPage() {
foreach($noteArray as $currentNote)
{
if (isset($proceed)) {
$noteObj = new ResourceNote();
$noteObj->entityID = $resource->primaryKey;
$noteObj->noteTypeID = $note['noteType'];
$noteObj->updateLoginID = '';
$noteObj->updateDate = date('Y-m-d H:i:s');
$noteObj->noteText = $currentNote;
$noteObj->tabName = 'Product';
$noteObj->save();
if (!empty($currentNote)) {
$noteObj = new ResourceNote();
$noteObj->entityID = $resource->primaryKey;
$noteObj->noteTypeID = $note['noteType'];
$noteObj->updateLoginID = $loginID;
$noteObj->updateDate = date('Y-m-d H:i:s');
$noteObj->noteText = $currentNote;
$noteObj->tabName = 'Product';
$noteObj->save();
}
}
$noteInserted++;
}
Expand Down

0 comments on commit 290f668

Please sign in to comment.