Fix number of books per custom column value (missing for bootstrap template). fix #172
This commit is contained in:
parent
a3b29a11a1
commit
c4885499cd
|
@ -94,7 +94,7 @@ order by {0}.value', self::getTableName ($customId), self::getTableLinkName ($cu
|
||||||
$customColumn = new CustomColumn ($post->id, $post->name, $customId);
|
$customColumn = new CustomColumn ($post->id, $post->name, $customId);
|
||||||
array_push ($entryArray, new Entry ($customColumn->name, $customColumn->getEntryId (),
|
array_push ($entryArray, new Entry ($customColumn->name, $customColumn->getEntryId (),
|
||||||
str_format (localize("bookword", $post->count), $post->count), "text",
|
str_format (localize("bookword", $post->count), $post->count), "text",
|
||||||
array ( new LinkNavigation ($customColumn->getUri ()))));
|
array ( new LinkNavigation ($customColumn->getUri ())), "", $post->count));
|
||||||
}
|
}
|
||||||
return $entryArray;
|
return $entryArray;
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,6 +171,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals ("Type4", $currentPage->title);
|
$this->assertEquals ("Type4", $currentPage->title);
|
||||||
$this->assertCount (2, $currentPage->entryArray);
|
$this->assertCount (2, $currentPage->entryArray);
|
||||||
$this->assertEquals ("SeriesLike", $currentPage->entryArray [0]->title);
|
$this->assertEquals ("SeriesLike", $currentPage->entryArray [0]->title);
|
||||||
|
$this->assertEquals (2, $currentPage->entryArray [0]->numberOfElement);
|
||||||
$this->assertFalse ($currentPage->ContainsBook ());
|
$this->assertFalse ($currentPage->ContainsBook ());
|
||||||
|
|
||||||
$_GET ["custom"] = NULL;
|
$_GET ["custom"] = NULL;
|
||||||
|
@ -191,6 +192,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals ("Type2", $currentPage->title);
|
$this->assertEquals ("Type2", $currentPage->title);
|
||||||
$this->assertCount (3, $currentPage->entryArray);
|
$this->assertCount (3, $currentPage->entryArray);
|
||||||
$this->assertEquals ("tag1", $currentPage->entryArray [0]->title);
|
$this->assertEquals ("tag1", $currentPage->entryArray [0]->title);
|
||||||
|
$this->assertEquals (2, $currentPage->entryArray [0]->numberOfElement);
|
||||||
$this->assertFalse ($currentPage->ContainsBook ());
|
$this->assertFalse ($currentPage->ContainsBook ());
|
||||||
|
|
||||||
$_GET ["custom"] = NULL;
|
$_GET ["custom"] = NULL;
|
||||||
|
@ -211,6 +213,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals ("Type1", $currentPage->title);
|
$this->assertEquals ("Type1", $currentPage->title);
|
||||||
$this->assertCount (2, $currentPage->entryArray);
|
$this->assertCount (2, $currentPage->entryArray);
|
||||||
$this->assertEquals ("other", $currentPage->entryArray [0]->title);
|
$this->assertEquals ("other", $currentPage->entryArray [0]->title);
|
||||||
|
$this->assertEquals (1, $currentPage->entryArray [0]->numberOfElement);
|
||||||
$this->assertFalse ($currentPage->ContainsBook ());
|
$this->assertFalse ($currentPage->ContainsBook ());
|
||||||
|
|
||||||
$_GET ["custom"] = NULL;
|
$_GET ["custom"] = NULL;
|
||||||
|
|
Loading…
Reference in a new issue