Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/2.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Rochester committed Jul 2, 2014
2 parents 5eb7b64 + a3264a0 commit d7f5733
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion RELEASE-LIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It's easiest to start with a fresh repository, so the instructions start there.
1. `git add --all views/shared/javascripts`
1. `git commit`
1. Update i18n:
* `tx pull --all`
* `tx pull --all --force`
* `rake update_pot build_mo`
* `git add --all languages`
* `git commit` (if there are new translations)
Expand Down
Binary file modified features/data/db-dump.sql.gz
Binary file not shown.
9 changes: 5 additions & 4 deletions lib/NeatlineFeatures/Utils/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function setViewOptions($text, $record, $elementText=NULL)
$this->_text = $text;
$this->_record = $record;
$this->_elementText = $elementText;
if (!is_null($elementText)) {
if (!is_null($elementText) && $elementText != NULL) {
$this->_value = $elementText->text;
}
$this->createInputNameStem();
Expand Down Expand Up @@ -412,7 +412,7 @@ public function isHtml()
}
} else {
$etext = $this->getElementText();
if (isset($etext)) {
if (isset($etext) && $etext != NULL && !is_null($etext)) {
$isHtml = (bool)$etext->html;
}
}
Expand Down Expand Up @@ -522,9 +522,10 @@ public function getView()
$etext = $this->_elementText;

// Pull a fresh $value, if we can.
$value = is_null($etext) ? $this->_text : $etext->getText();
$value = (is_null($etext) || $etext == NULL)
? $this->_text : $etext->getText();

if (! is_null($etext) && is_null($etext->record_id)) {
if (! is_null($etext) && $etext != NULL && is_null($etext->record_id)) {
// There's no data for this.
$view = '';
} else if ((bool)$isMap) {
Expand Down
3 changes: 2 additions & 1 deletion models/Table/Table_NeatlineFeature.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ public function getRecordByText($value)
**/
public function getRecordByElementText($element_text)
{
if (is_null($element_text->record_id)) {
if (is_null($element_text) || $element_text == NULL ||
is_null($element_text->record_id)) {
$select = NULL;
} else {
$select = $this->_db
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "neatlinefeatures",
"version" : "2.0.3",
"version" : "2.0.4",
"dependencies" : {
"inireader" : "~0.2.4",
"iniparser" : "~1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion plugin.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author="Scholars' Lab"
description="Allows administrators to draw things on maps and associate them with an Omeka item."
link="https://github.com/scholarslab/NeatlineFeatures"
support_link="https://github.com/scholarslab/NeatlineFeatures/issues"
version="2.0.3"
version="2.0.4"
tags="geospatial"
omeka_minimum_version="2.0"
omeka_tested_up_to="2.0"
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.3
2.0.4

0 comments on commit d7f5733

Please sign in to comment.