| 02:50 | * | JustTB has quit (Quit: Leaving.) |
| 09:08 | skipper_is[m] | Morning all. Question re quick forms/automatic titles on logs. My weight module saves the logs as something like "Weight of [asset's name] : [amount]kg" |
| 09:09 | skipper_is[m] | Now, one of my assets is "Martha's kid" - and the ' is coming up as the html character encoding of ' |
| 09:09 | skipper_is[m] | Err.. How do I change that? |
| 09:18 | skipper_is[m] | Having a little look at some of the other modules, but none seem to have anything like a function for escape characters... |
| 09:22 | skipper_is[m] | The milk quick form also does the escape character |
| 09:23 | skipper_is[m] | But the birth form does not |
| 09:23 | skipper_is[m] | But that assembles the log title differently.. |
| 09:23 | skipper_is[m] | The birth form leaves it blank and it autogenerates.. |
| 09:32 | skipper_is[m] | Nvm... refactired |
| 09:32 | skipper_is[m] | * Nvm... refactored |
| 09:35 | skipper_is[m] | So the livestock weight function uses farm_log_entity_label_summary('farm_asset', $assets); to generate the title, rather than just taking the entity_label and printing that |
| 09:36 | skipper_is[m] | Though I don't see quite what label_summary is doing differently |
| 09:38 | skipper_is[m] | Apart from imploding the list.. |
| 09:38 | skipper_is[m] | Never mind |
| 09:39 | skipper_is[m] | It is working either way :P |
| 09:43 | * | JustTB has joined |
| 09:51 | * | calbasi has joined |
| 11:42 | * | JustTB has quit (Quit: Leaving.) |
| 11:58 | * | JustTB has joined |
| 12:39 | * | JustTB has quit (Quit: Leaving.) |
| 13:52 | * | JustTB has joined |
| 21:53 | * | calbasi has quit (Quit: Leaving) |
| 23:40 | * | JustTB has quit (Quit: Leaving.) |