Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Description.php |
— | — | @@ -521,6 +521,10 @@ |
522 | 522 | public function addDescription(SMWDescription $description) { |
523 | 523 | if (! ($description instanceof SMWThingDescription) ) { |
524 | 524 | $this->m_descriptions[] = $description; |
| 525 | + // move print descriptions downwards |
| 526 | + ///TODO: This may not be a good solution, since it does modify $description and since it does not react to future cahges |
| 527 | + $this->m_printreqs = array_merge($this->m_printreqs, $description->getPrintRequests()); |
| 528 | + $description->setPrintRequests(array()); |
525 | 529 | } |
526 | 530 | } |
527 | 531 | |
— | — | @@ -627,8 +631,11 @@ |
628 | 632 | } else { |
629 | 633 | $this->m_descriptions[] = $description; |
630 | 634 | } |
631 | | - |
632 | 635 | } |
| 636 | + // move print descriptions downwards |
| 637 | + ///TODO: This may not be a good solution, since it does modify $description and since it does not react to future cahges |
| 638 | + $this->m_printreqs = array_merge($this->m_printreqs, $description->getPrintRequests()); |
| 639 | + $description->setPrintRequests(array()); |
633 | 640 | } |
634 | 641 | |
635 | 642 | public function getQueryString() { |