Hooks: Make sure that original task is properly detected

On modify event uses UUID of the original task being modified
to determine which line should be interpreted as modification
of the task.

This was achieved by searching by a substring in a specific JSON
format, which, consenquently, failed on JSON strings of other (valid)
formats.
This commit is contained in:
Tomas Babej 2015-01-21 07:59:27 +01:00 committed by Paul Beckingham
parent 5e90510530
commit 8683574b18
2 changed files with 27 additions and 2 deletions

View file

@ -52,6 +52,7 @@ public:
private:
std::vector <std::string> scripts (const std::string&);
bool isJSON (const std::string&) const;
bool JSONContainsUUID (const std::string&, const std::string&) const;
int callHookScript (const std::string&, const std::vector <std::string>&, std::vector <std::string>&);
private: