< 212020-03-22⋎23 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
02:50*JustTB has quit (Quit: Leaving.)
09:08skipper_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:09skipper_is[m]Now, one of my assets is "Martha's kid" - and the ' is coming up as the html character encoding of &#039;
09:09skipper_is[m]Err.. How do I change that?
09:18skipper_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:22skipper_is[m]The milk quick form also does the escape character
09:23skipper_is[m]But the birth form does not
09:23skipper_is[m]But that assembles the log title differently..
09:23skipper_is[m]The birth form leaves it blank and it autogenerates..
09:32skipper_is[m]Nvm... refactired
09:32skipper_is[m] * Nvm... refactored
09:35skipper_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:36skipper_is[m]Though I don't see quite what label_summary is doing differently
09:38skipper_is[m]Apart from imploding the list..
09:38skipper_is[m]Never mind
09:39skipper_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.)

< 212020-03-22⋏23 >