| [22:50:40] | * JustTB has quit (Quit: Leaving.) |
| [05:08:19] | <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" |
| [05:09:37] | <skipper_is[m]> | Now, one of my assets is "Martha's kid" - and the ' is coming up as the html character encoding of ' |
| [05:09:47] | <skipper_is[m]> | Err.. How do I change that? |
| [05:18:39] | <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... |
| [05:22:55] | <skipper_is[m]> | The milk quick form also does the escape character |
| [05:23:04] | <skipper_is[m]> | But the birth form does not |
| [05:23:10] | <skipper_is[m]> | But that assembles the log title differently.. |
| [05:23:20] | <skipper_is[m]> | The birth form leaves it blank and it autogenerates.. |
| [05:32:40] | <skipper_is[m]> | Nvm... refactired |
| [05:32:47] | <skipper_is[m]> | * Nvm... refactored |
| [05:35:48] | <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 |
| [05:36:33] | <skipper_is[m]> | Though I don't see quite what label_summary is doing differently |
| [05:38:53] | <skipper_is[m]> | Apart from imploding the list.. |
| [05:38:55] | <skipper_is[m]> | Never mind |
| [05:39:00] | <skipper_is[m]> | It is working either way :P |
| [05:43:46] | * JustTB has joined #farmos |
| [05:51:41] | * calbasi has joined #farmos |
| [07:42:08] | * JustTB has quit (Quit: Leaving.) |
| [07:58:38] | * JustTB has joined #farmos |
| [08:39:22] | * JustTB has quit (Quit: Leaving.) |
| [09:52:25] | * JustTB has joined #farmos |
| [17:53:24] | * calbasi has quit (Quit: Leaving) |
| [19:40:49] | * JustTB has quit (Quit: Leaving.) |