Index: trunk/extensions/SemanticWatchlist/includes/SWL_ChangeSet.php |
— | — | @@ -640,6 +640,17 @@ |
641 | 641 | } |
642 | 642 | |
643 | 643 | /** |
| 644 | + * Sets the edit this set of changes belong to. |
| 645 | + * |
| 646 | + * @since 0.1 |
| 647 | + * |
| 648 | + * @param SWLEdit $edit |
| 649 | + */ |
| 650 | + public function setEdit( SWLEdit $edit ) { |
| 651 | + $this->edit = $edit; |
| 652 | + } |
| 653 | + |
| 654 | + /** |
644 | 655 | * Returns if a certain insertion is present in the set of changes. |
645 | 656 | * |
646 | 657 | * @since 0.1 |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php |
— | — | @@ -47,6 +47,7 @@ |
48 | 48 | $edit->writeToDB(); |
49 | 49 | } |
50 | 50 | |
| 51 | + $changeSet->setEdit( $edit ); |
51 | 52 | $setId = $changeSet->writeToStore( $groups, $edit->getId() ); |
52 | 53 | |
53 | 54 | if ( $setId != 0 ) { |