in reply to Methods in template toolkit
Without knowing more details about what DBIx:: module you are using I cannot say for sure, however I suspect that the issue you are seeing here is related to return context. Your find method maybe returns one thing in scalar context (a row_object) and another thing in list context? If that is the case TT might be calling it in list context in this case. I know I have been bitten by similar things while using TT and DBIx::Class. In general being very explicit in TT code is the best option.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Methods in template toolkit
by dariusj (Sexton) on Dec 06, 2007 at 14:56 UTC | |
|
Re^2: Methods in template toolkit
by dariusj (Sexton) on Dec 06, 2007 at 14:07 UTC | |
|
Re^2: Methods in template toolkit
by dariusj (Sexton) on Dec 06, 2007 at 14:12 UTC |