]> saetta.ns0.it Git - zakgrid_go/commitdiff
Call ToCall method also when the method is not nil. master
authorAndrea Zagli <azagli@libero.it>
Wed, 22 Jun 2022 13:49:06 +0000 (15:49 +0200)
committerAndrea Zagli <azagli@libero.it>
Wed, 22 Jun 2022 13:49:06 +0000 (15:49 +0200)
grid/grid.go

index f01a7c97cc56dcfe91b763a9da63f957d989fa73..87fa00dc3ccdfdce53cd0a246fb3f59e79e5f35b 100644 (file)
@@ -120,7 +120,7 @@ func (g *Grid) GetRowFromMap (m map[string]interface{}) string {
 
        for _, c := range g.cols {
                v, ok := m[c.Name]
-               if !ok {
+               if !ok || c.ToCall != nil {
                        if c.ToCall != nil {
                                v = c.ToCall(m)
                        }