Fix the getBy method
and fix annoying undefined txt errors

Signed-off-by: Suki <suki@missallsunday.com>
Trickery to fancy re-use the same template for adding and editing

Signed-off-by: Suki <suki@missallsunday.com>
And for the love of sweet merciful Poseidon!
Don't commit debug stuff!

Signed-off-by: Suki <suki@missallsunday.com>
Moar bugz squeezed!

Signed-off-by: Suki <suki@missallsunday.com>